Skip to content

Infra iam enforcer service accounts - #36215

Merged
pabloem merged 2 commits into
apache:masterfrom
ksobrenat32:infra-iam-enforcer-service-accounts
Sep 21, 2025
Merged

Infra iam enforcer service accounts#36215
pabloem merged 2 commits into
apache:masterfrom
ksobrenat32:infra-iam-enforcer-service-accounts

Conversation

@ksobrenat32

Copy link
Copy Markdown
Contributor

This pull request updates the IAM policy compliance logic to ensure that only service accounts belonging to the current project are considered during compliance checks and exports. The main changes add filtering to skip service accounts that do not match the project ID, improving the accuracy and relevance of IAM policy enforcement.

The PR also updates the general permissions.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @ksobrenat32, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a crucial refinement to the infrastructure's IAM policy compliance system. By implementing project-specific filtering for service accounts, the system now accurately processes and enforces policies only for relevant entities, preventing cross-project service accounts from affecting compliance reports. Concurrently, the PR updates the foundational IAM permissions configuration, reflecting the latest access controls for various service accounts.

Highlights

  • IAM Service Account Filtering: The core IAM policy compliance logic has been enhanced to filter service accounts, ensuring that only those belonging to the current project are considered during compliance checks and exports. This improves the accuracy and relevance of IAM policy enforcement.
  • Updated IAM Permissions: The infra/iam/users.yml file has received a significant update, incorporating numerous new service accounts and their corresponding IAM roles and permissions within the apache-beam-testing project.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@ksobrenat32

Copy link
Copy Markdown
Contributor Author

R: @pabloem

@github-actions

Copy link
Copy Markdown
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@pabloem

pabloem commented Sep 21, 2025

Copy link
Copy Markdown
Member

lgtm

@pabloem
pabloem merged commit 3659832 into apache:master Sep 21, 2025
2 checks passed
@ksobrenat32
ksobrenat32 deleted the infra-iam-enforcer-service-accounts branch October 3, 2025 14:21
@ksobrenat32
ksobrenat32 restored the infra-iam-enforcer-service-accounts branch October 3, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants